<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/base.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/info-reg.css" />
<title>网上招聘系统</title>
<style type="text/css">
	.error{
		color:Red;
		font-size:13px;
		margin-left:5px;
		padding-left:16px; 
	}
</style>
</head>
<body>
<div class="title">
	<h2>简历信息添加(*为必填项)</h2>
</div>		
<form id="fm" method="post" action="${pageContext.request.contextPath }/applicant/save/resume/${applicant.id}.action">
<div class="main">
	
	<p class="short-input ue-clear">
    	<label>*标题：</label>
        <input name="title" type="text" value=""/>
    </p>
	<p class="short-input ue-clear">
    	<label>*姓名：</label>
        <input name="name" type="text" readonly="readonly" value="${applicant.name }"/>
    </p>
    <p class="short-input ue-clear" id="xingbie">
    	<label>*性别：</label>
    	<input name="sex" type="text" readonly="readonly" value="${applicant.sex }"/>
    </p>
    <p class="short-input ue-clear">
    	<label>*出生日期：</label>
        <input name="birthday" type="text" readonly="readonly" value="${applicant.birthday }"/>
    </p>
    <p class="long-input ue-clear">
    	<label>*毕业学校：</label>
        <input name="school" type="text" readonly="readonly" value="${applicant.school }"/>
    </p>
    <p class="long-input ue-clear">
    	<label>*所学专业：</label>
        <input name="profession" type="text" readonly="readonly" value="${applicant.profession }"/>
    </p>
    <p class="long-input ue-clear">
    	<label>*联系方式：</label>
        <input name="phone" type="text" value=""/>
    </p>
    <p class="long-input ue-clear">
    	<label>*电子邮箱：</label>
        <input name="email" type="text" value=""/>
    </p>
    <div class="short-input select ue-clear">
		<label>*薪资期望：</label>
        <select name="salary" style="width:200px;height:30px;border:1px solid #C5D6E0">
        	<option >1000-3000</option>
        	<option >3001-5000</option>
            <option >5001-7000</option>
            <option >7001-9000</option>
        	<option >9001-11000</option>
        	<option >11001-30000</option>
        	<option >30001以上</option>
        </select>
    </div>
    <p class="short-input ue-clear">
    	<label>个人评价：</label>
        <textarea name="description" ></textarea>
    </p>
    <p class="short-input ue-clear">
		<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布简历</label>
      	<input type="checkbox" name="isPublic" checked="checked"/>
    </p>
    <input name="applicantId" type="hidden" value="${applicant.id }">
    <div class="btn ue-clear">
		<input style="height:50px;width:150px;background-color:#68B86C;color:white;border-radius:10px" type="submit" value="保存"/>
		<input style="height:50px;width:150px;background-color:#68B86C;color:white;border-radius:10px" type="button" value="返回" onclick="javascript:history.go(-1)"/>
	</div>
</div>
</form>
</body>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/WdatePicker.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.validate.min.js"></script>
<script type="text/javascript">
	
	$( "#fm" ).validate({
	      rules: {
	          title: {
		         required:true,
		         minlength: 1,
		         maxlength: 10
		      },
	          phone: {
	        	  required:true  
		      },
	          email: {
	        	  required:true,
	        	  email:true
		      }
	      },
	      messages: {
	          title: {
	              required: "*不能为空！",
	          	  minlength: $.validator.format( "*长度不得小于4个字符！" ),
	              maxlength: $.validator.format( "*长度不得大于10个字符！" )
		      },
		      phone: {
		          required: "*不能为空！"
			  },
		      email: {
		          required: "*不能为空！",
		          email: "*必须输入正确格式的电子邮件！"
			  }
	      }
	  });
</script>
</html>